#pragma once

#include <mysqlx/xdevapi.h>

class MysqlSession
{
public:
    MysqlSession(mysqlx::Session &&sess);
    ~MysqlSession();

public:
    std::shared_ptr<mysqlx::Schema> getSchema(const std::string &name);
    std::shared_ptr<mysqlx::Schema> createSchema(const std::string &name);

private:
    std::unique_ptr<mysqlx::Session> session_;
};
